/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="VALORESNORMAIS")
public class ValoresNormaisProteu implements Serializable{

    @Id
    @Column(name="VAL_ST_CODIGO")
    private String valStCodigo;
    @Column(name="VAL_ST_TITULO")
    private String valStTitulo;
    @Lob
    @Column(name="VAL_BL_DESCRICAO")
    private String valBlDescricao;


    public String getValBlDescricao() {
        return valBlDescricao;
    }

    public void setValBlDescricao(String valBlDescricao) {
        this.valBlDescricao = valBlDescricao;
    }

    public String getValStCodigo() {
        return valStCodigo;
    }

    public void setValStCodigo(String valStCodigo) {
        this.valStCodigo = valStCodigo;
    }

    public String getValStTitulo() {
        return valStTitulo;
    }

    public void setValStTitulo(String valStTitulo) {
        this.valStTitulo = valStTitulo;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ValoresNormaisProteu other = (ValoresNormaisProteu) obj;
        if ((this.valStCodigo == null) ? (other.valStCodigo != null) : !this.valStCodigo.equals(other.valStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 37 * hash + (this.valStCodigo != null ? this.valStCodigo.hashCode() : 0);
        return hash;
    }



}
